package zju.ccnt.rest.service.validation;

import javax.validation.Constraint;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by zha on 14/11/6.
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = NumericalLikeValidator.class)
public @interface ValidNumericalLike {
    String message() default "{zju.ccnt.validation.constraint.ValidNumericalLike.message}";
    Class[] groups() default {};
    Class[] payload() default {};

    //required type
    NumericalLikeValidator.NumericalEnum type();
}
